package com.csx.data.orm.jpa.IdGenerator.repositories;

import com.csx.data.orm.jpa.IdGenerator.SerialNumberEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author: liyuan  liyuan1@sunline.cn
 * @date: 2020/3/10 15:08
 * @description: id生成器
 * @version: 4.0
 **/
@Repository
public interface SerialNumberDao extends JpaRepository<SerialNumberEntity, String> {

    List<SerialNumberEntity> findByEnable(boolean enable);

    SerialNumberEntity findByEnableAndModuleTag(Boolean b, String moduleTag);

    SerialNumberEntity findByModuleTag(String moduleTag);
}
